home *** CD-ROM | disk | FTP | other *** search
- /*****************************************************
- ; Filename : palette.h
- ;
- ; Date : 11-6-94
- ; Mod. Date : 29-7-94
- ;
- ; Others : Obtained from Ferraro
- ; : VGA Trainer (smith9@batis.bis.und.ac.za)
- ; ; VGL20 (morley@camosun.bc.ca)
- ;****************************************************/
- #ifndef PALETTE_H
- #define PALETTE_H
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- #include "std_defs.h"
-
- //from palasm.asm
- void mtSetCol(byte ColorIndex, byte red, byte green , byte blue);
- void mtGetCol(byte ColorIndex, byte *red, byte *green, byte *blue);
- void mtSetPal(byte pal[], byte start, byte end);
- void mtBlackOut(void);
- void mtWhiten(void);
- void mtGetAllPal(byte pal[]);
- void mtSingleFade(byte pal[]);
-
- int mtLoadPal(char *filename, byte palette[]);
- int mtSavePal(char *filename, byte palette[]);
- void mtClearPal(byte palette[]);
- void mtFadeOut(int interval);
- void mtFadeIn(byte palette[], byte inc, int interval);
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif PALETTE_H
-